export default {
  course_teacher_id: [{ required: true, message: '授课老师不能为空', trigger: 'change' }],
  course_name: [{ required: true, message: '课程名称不能为空', trigger: 'blur' }],
  course_grade: [
    { required: true, message: '课程年级不能为空', trigger: 'blur' },
    {
      pattern: /\d+/,
      message: '课程年级错误',
      trigger: 'blur',
    },
  ],
  course_time: [
    { required: true, message: '课程时间不能为空', trigger: 'change' },
    {
      pattern: /^\d-\d-\d$/,
      message: '课程时间未选择完整',
      trigger: 'change',
    },
  ],
  course_location: [{ required: true, message: '上课地址不能为空', trigger: 'blur' }],
  course_credit: [
    { required: true, message: '课程学分不能为空', trigger: 'blur' },
    {
      pattern: /\d+/,
      message: '课程学分错误',
      trigger: 'blur',
    },
  ],
  course_max_size: [
    { required: true, message: '教室座位数不能为空', trigger: 'blur' },
    {
      pattern: /\d+/,
      message: '教室座位数错误',
      trigger: 'blur',
    },
  ],
  course_exam_date: [{ required: true, message: '考试时间不能为空', trigger: 'change' }],
  course_exam_location: [{ required: true, message: '考试地址不能为空', trigger: 'blur' }],
}
